<#assign className = clazz.className>   
<#assign classNameLower = className?uncap_first>   
package com.uisftech.healthcard.dao.impl;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.uisftech.healthcard.dao.${className}Dao;
import com.uisftech.healthcard.dao.UniversalExtendDao;
import com.uisftech.healthcard.vo.${className}Vo;

public class ${className}DaoImpl extends UniversalExtendDao implements
		${className}Dao {

	private static final String ListHql = 
			添加HQL
			;
	
	public List<${className}Vo> getList(HashMap map, int rowStart, int offset) {
		String hql = this.buildHql(ListHql, map);
		List<Object[]> list = this.getEntitiesByHQL(hql, rowStart,offset,map);
		
		List result = new ArrayList();
		for (int i = 0; i != list.size(); i++) {
			${className}Vo item = new ${className}Vo();
			Object[] fields = list.get(i);
			添加赋值
			result.add(item);
		}
		return result;
	}

	public int getCount(HashMap map) {
		String hql = this.buildCountHql(ListHql, map);
		return this.getCountByHQL(hql, map).intValue();
	}
}
